package com.springboot.wisdom.serviceApi.mqtt.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备报警表。
 *
 * @TableName hardware_device_error
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@TableName(value = "hardware_device_error")
public class HardwareDeviceErrorDO implements Serializable {
    /**
     * 设备异常id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 设备异常名称
     */
    private String name;

    /**
     * 异常类型
     */
    private String type;

    /**
     * 异常级别
     */
    private String grade;

    /**
     * 描述
     */
    private String remark;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}